package com.tengfei.main.question.domain.export;

import com.alibaba.excel.annotation.ExcelProperty;
import com.tengfei.common.annotation.ExcelDictFormat;
import com.tengfei.common.convert.ExcelDictConvert;
import com.tengfei.common.utils.poi.select.ExcelSelected;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @author feige
 * @version v1.0
 * @date 2022-11-07-21:05
 * @description
 */

@Data
@NoArgsConstructor
public class ObjImportVo implements Serializable {

    /**
     * 客观题内容
     */
    @ExcelProperty(value = "客观题内容")
    private String objContent;

    /**
     * 客观题类型
     */
    @ExcelProperty(value = "客观题类型",converter = ExcelDictConvert.class,index = 1)
    @ExcelDictFormat(dictType = "obj_qu_type")
    @ExcelSelected(source = {"单选题", "判断题", "多选题"})
    private Integer objType;

    /**
     * 难度等级
     */
    @ExcelProperty(value = "难度等级(1~5)")
    private Integer objGrand;

    /**
     * 知识点
     */
    @ExcelProperty(value = "知识点(用逗号隔开,最多两个)")
    private String objTag;

    /**
     * 选项一
     */
    @ExcelProperty(value = "选项一/正确项")
    private String objOne;

    /**
     * 选项二
     */
    @ExcelProperty(value = "选项二/错误项")
    private String objTwo;

    /**
     * 选项三
     */
    @ExcelProperty(value = "选项三")
    private String objThree;

    /**
     * 选项四
     */
    @ExcelProperty(value = "选项四")
    private String objFour;

    /**
     * 答案序号
     */
    @ExcelProperty(value = "答案(1~4代表A~D,多选题用$号隔开)")
    private String objAnswer;

    /**
     * 题目解析
     */
    @ExcelProperty(value = "题目解析")
    private String objAnswerContent;


}
